package org.sbear.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试控制器
 *
 * @author xxyWi
 * @date 2021/02/05
 */
@RestController
public class TestController {

    @Value("${gateway.brushFilter.duration}")
    private Long PAST_TIME_DURATION;

    @GetMapping("/config")
    public String getConfig() {
        return PAST_TIME_DURATION.toString();
    }

}
